<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JSON4U.cn - 专业的在线JSON处理平台</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
        }
        .serif-font {
            font-family: 'Noto Serif SC', serif;
        }
        .gradient-text {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        .feature-icon {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .drop-cap::first-letter {
            float: left;
            font-size: 4rem;
            line-height: 3rem;
            padding-right: 0.5rem;
            margin-top: 0.5rem;
            font-weight: 700;
            color: #667eea;
        }
        .section-divider {
            background: linear-gradient(to right, transparent, #e5e7eb, transparent);
            height: 1px;
            margin: 4rem 0;
        }
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 2rem 0;
        }
        .code-block {
            background: #1e293b;
            color: #e2e8f0;
            border-radius: 0.5rem;
            padding: 1.5rem;
            overflow-x: auto;
            font-family: 'Consolas', 'Monaco', monospace;
        }
        .step-number {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            width: 2rem;
            height: 2rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            flex-shrink: 0;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-6">
        <div class="max-w-6xl mx-auto text-center">
            <h1 class="text-5xl md:text-6xl font-bold mb-6 serif-font">JSON4U.cn</h1>
            <p class="text-xl md:text-2xl mb-8 opacity-90">专业的在线JSON处理平台</p>
            <p class="text-lg max-w-3xl mx-auto leading-relaxed opacity-80">
                为开发者、数据分析师和测试工程师精心设计，提供格式化、可视化、比较和转换等功能，让JSON处理变得简单高效
            </p>
            <div class="mt-10 flex flex-wrap justify-center gap-4">
                <a href="https://json4u.cn/editor" target="_blank" class="bg-white text-purple-700 px-8 py-3 rounded-full font-semibold hover:bg-gray-100 transition-colors flex items-center gap-2">
                    <i class="fas fa-rocket"></i> 立即体验
                </a>
                <button class="border-2 border-white px-8 py-3 rounded-full font-semibold hover:bg-white hover:text-purple-700 transition-all flex items-center gap-2">
                    <i class="fas fa-play-circle"></i> 功能演示
                </button>
            </div>
        </div>
    </section>

    <!-- Problem Section -->
    <section class="py-16 px-6">
        <div class="max-w-6xl mx-auto">
            <h2 class="text-3xl md:text-4xl font-bold text-center mb-12 serif-font">
                <i class="fas fa-exclamation-triangle feature-icon mr-3"></i>
                它能解决什么问题
            </h2>
            <div class="grid md:grid-cols-2 gap-8">
                <div class="bg-white rounded-xl p-8 shadow-lg card-hover">
                    <h3 class="text-xl font-bold mb-4 flex items-center">
                        <i class="fas fa-code text-purple-600 mr-3"></i>
                        开发者的痛点
                    </h3>
                    <ul class="space-y-3 text-gray-700">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-3"></i>
                            <span>手动格式化JSON耗时且易出错</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-3"></i>
                            <span>复杂嵌套结构难以快速理解</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-3"></i>
                            <span>缺乏实时验证工具，调试API响应困难</span>
                        </li>
                    </ul>
                </div>
                <div class="bg-white rounded-xl p-8 shadow-lg card-hover">
                    <h3 class="text-xl font-bold mb-4 flex items-center">
                        <i class="fas fa-lightbulb text-purple-600 mr-3"></i>
                        JSON4U的解决方案
                    </h3>
                    <p class="text-gray-700 drop-cap">
                        通过直观的可视化界面、强大的对比功能和灵活的转换工具，JSON4U.cn提供一站式解决方案，让JSON处理变得简单高效，适合从初学者到资深开发者的各种需求。
                    </p>
                </div>
            </div>
        </div>
    </section>

    <div class="section-divider"></div>

    <!-- Core Features -->
    <section class="py-16 px-6">
        <div class="max-w-6xl mx-auto">
            <h2 class="text-3xl md:text-4xl font-bold text-center mb-12 serif-font">
                <i class="fas fa-star feature-icon mr-3"></i>
                核心功能概述
            </h2>
            <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
                <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
                    <div class="text-4xl mb-4">
                        <i class="fas fa-check-double feature-icon"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">格式化与验证</h3>
                    <p class="text-gray-600">一键格式化JSON，自动校验语法错误并高亮问题位置，帮助开发者快速修复无效JSON</p>
                </div>
                <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
                    <div class="text-4xl mb-4">
                        <i class="fas fa-project-diagram feature-icon"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">图形与表格视图</h3>
                    <p class="text-gray-600">将JSON数据转换为树状图或表格，直观展示嵌套结构，方便理解复杂数据的层级关系</p>
                </div>
                <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
                    <div class="text-4xl mb-4">
                        <i class="fas fa-code-compare feature-icon"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">结构化与文本比较</h3>
                    <p class="text-gray-600">支持逐行文本比较和语义化结构比较，快速定位两个JSON的差异</p>
                </div>
                <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
                    <div class="text-4xl mb-4">
                        <i class="fas fa-file-csv feature-icon"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">CSV转换与jq支持</h3>
                    <p class="text-gray-600">支持JSON与CSV互转，集成jq查询语言，允许用户通过命令过滤和处理复杂JSON数据</p>
                </div>
                <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
                    <div class="text-4xl mb-4">
                        <i class="fas fa-download feature-icon"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">数据导入导出</h3>
                    <p class="text-gray-600">支持从URL、文件或剪贴板导入JSON，生成的结果可导出为JSON或CSV</p>
                </div>
                <div class="bg-white rounded-xl p-6 shadow-lg card-hover">
                    <div class="text-4xl mb-4">
                        <i class="fas fa-bolt feature-icon"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">高性能处理</h3>
                    <p class="text-gray-600">优化的渲染引擎，即使处理大型JSON文件也能保持流畅的用户体验</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Visualization Section -->
    <section class="py-16 px-6 bg-gray-100">
        <div class="max-w-6xl mx-auto">
            <h2 class="text-3xl md:text-4xl font-bold text-center mb-12 serif-font">
                <i class="fas fa-sitemap feature-icon mr-3"></i>
                功能关系图
            </h2>
            <div class="bg-white rounded-xl p-8 shadow-lg">
                <div class="mermaid">
                    graph TD
                        A[JSON4U.cn] --> B[数据输入]
                        A --> C[数据处理]
                        A --> D[数据输出]
                        
                        B --> B1[文件上传]
                        B --> B2[URL导入]
                        B --> B3[剪贴板粘贴]
                        
                        C --> C1[格式化美化]
                        C --> C2[语法验证]
                        C --> C3[视图转换]
                        C --> C4[数据比较]
                        C --> C5[jq查询]
                        
                        C3 --> C31[树状图]
                        C3 --> C32[表格视图]
                        
                        C4 --> C41[文本比较]
                        C4 --> C42[结构比较]
                        
                        D --> D1[JSON导出]
                        D --> D2[CSV导出]
                        D --> D3[分享链接]
                        
                        style A fill:#667eea,stroke:#764ba2,stroke-width:3px,color:#fff
                        style C fill:#f3f4f6,stroke:#667eea,stroke-width:2px
                </div>
            </div>
        </div>
    </section>

    <div class="section-divider"></div>

    <!-- Use Cases -->
    <section class="py-16 px-6">
        <div class="max-w-6xl mx-auto">
            <h2 class="text-3xl md:text-4xl font-bold text-center mb-12 serif-font">
                <i class="fas fa-briefcase feature-icon mr-3"></i>
                使用场景
            </h2>
            <div class="space-y-8">
                <div class="bg-white rounded-xl p-8 shadow-lg">
                    <h3 class="text-2xl font-bold mb-4 flex items-center">
                        <i class="fas fa-bug text-purple-600 mr-3"></i>
                        API调试与验证
                    </h3>
                    <p class="text-gray-700 mb-4">
                        后端开发者在测试API时，可将响应JSON粘贴到JSON4U.cn，自动格式化并验证语法错误。例如，调试一个包含嵌套对象的API响应时，图形视图能清晰展示数据结构，快速定位字段缺失或格式错误。
                    </p>
                    <div class="code-block">
                        <pre>{
  "status": "success",
  "data": {
    "user": {
      "id": 12345,
      "name": "张三",
      "roles": ["admin", "developer"]
    }
  }
}</pre>
                    </div>
                </div>
                
                <div class="bg-white rounded-xl p-8 shadow-lg">
                    <h3 class="text-2xl font-bold mb-4 flex items-center">
                        <i class="fas fa-code-branch text-purple-600 mr-3"></i>
                        数据差异对比
                    </h3>
                    <p class="text-gray-700">
                        前端开发者在版本迭代